CXX = g++
#CXX = arm-vfp-linux-gnu-g++
#CXX = arm-linux-g++

PROG_NAME = heartbeatClient heartbeatServer

all : ${PROG_NAME}

heartbeatClient : node.o dataDevice.o
	${CXX} -o heartbeatClient node.o dataDevice.o

heartbeatServer : heartbeatServer.o
	${CXX} -o heartbeatServer heartbeatServer.o -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto

clean:
	rm -f *.o *.a *.out ${PROG_NAME}

dataDevice.o : dataDevice.cpp dataDevice.h
node.o : node.cpp
heartbeatServer.o : heartbeatServer.cpp
